package com.qingzhou.web.controller.edc;

import com.qingzhou.common.enums.BusinessType;
import com.qingzhou.framework.annotation.QzLog;
import com.qingzhou.web.service.RegionService;
import com.qingzhou.web.service.impl.params.vo.RegionVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jodd.io.FileUtil;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.data.annotation.Cache;

import java.util.List;

@Api("省市区")
@Controller
public class RegionController {
    @Inject
    RegionService regionService;
    @ApiOperation("获取省市")
    @Get
    @Mapping("/edc/regions")
    @Cache
    public List<RegionVo> regions() {
        return regionService.regions();
    }
}
